package 每日练习;

public class text10 {
    public static void main(String[] args)
    {
        int num = 121;
        int temp = num;
        int a = 0;
        while(num != 0)
        {
          int ge = num % 10;
          num /= 10;
          a = a * 10 + ge;
        }
        if(a == temp)
            System.out.println(temp+"是一个回文数");
        else
            System.out.println(temp+"不是一个回文数");

    }
}
